using SheLife.Domain.Entities;

namespace SheLife.Domain.Interfaces.Repositories
{
    /// <summary>
    /// 系统备份仓储接口
    /// </summary>
    public interface ISystemBackupRepository : IRepository<SystemBackup>
    {
        Task<IEnumerable<SystemBackup>> GetByUserIdAsync(Guid userId);
        Task<IEnumerable<SystemBackup>> GetByTypeAsync(string type);
        Task<SystemBackup?> GetLatestBackupAsync(Guid userId);
        Task<SystemBackup?> GetLatestBackupAsync(Guid userId, string type);
    }
}